package com.csun.cmny.provider.service.impl;

import com.csun.cmny.core.support.BaseService;
import com.csun.cmny.provider.dao.DmcCsunHumidistatDataHiMapper;
import com.csun.cmny.provider.model.domain.DmcCsunHumidistatDataHi;
import com.csun.cmny.provider.service.DmcCsunHumidistatDataHiService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Auther: chisj chisj@foxmal.com
 * @Date: 2019-12-30 20:00
 * @Description:
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class DmcCsunHumidistatDataHiServiceImpl extends BaseService<DmcCsunHumidistatDataHi> implements DmcCsunHumidistatDataHiService {

    @Resource
    private DmcCsunHumidistatDataHiMapper dmcCsunHumidistatDataHiMapper;

    @Override
    public Integer deleteByDeviceIds(List<Long> deviceIds) {

        return dmcCsunHumidistatDataHiMapper.deleteByDeviceIds(deviceIds);
    }
}
